/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ddnsserver;

/**
 *
 * @author tktung
 */
public class Server {
    private String ServerName;
    private String Path;
    private NameServer.TYPE_SERVER Type;

    public Server() {
        ServerName = "";
        Path = "";
        Type = NameServer.TYPE_SERVER.PRIMARY;
    }

    public Server(String serverName, String path, NameServer.TYPE_SERVER type) {
        ServerName = serverName;
        Path = path;
        Type = type;
    }

    public String getServerName() {
        return ServerName;
    }

    public String getPathServer() {
        return Path;
    }
    
    public NameServer.TYPE_SERVER getTypeServer() {
        return Type;
    }
    
    public void setServerName(String name) {
        if(name != null) {
            ServerName = name;
        }
    }
    
    public void setTypeServer(NameServer.TYPE_SERVER t) {
        Type = t;
    }

    public void setPathServer(String path) {
        Path = path;
    }
}